<template>
	<view>
		<uni-indexed-list :options="list" :showSelect="false" @click="bindClick"></uni-indexed-list>
	</view>
</template>

<script>
	import uniIndexedList from '@/components/uni-indexed-list/uni-indexed-list.vue'
	import {post,get} from '../../utils/index.js';
	export default {
		data() {
			return {
				list:[],
				shequ_name:''
			}
		},
		components: {uniIndexedList},
		onReady() {
			post(this.weixin_app+'/wxapp/check_shequ_list').then(res=>{
				this.list = res.data;
			});
		},
		methods: {
			bindClick(e){
				// console.log(e);
				// this.shequ_name = e.item.name;
				uni.navigateTo({
					url:'apply?name=' + e.item.shequName
				})
			}
		}
	}
</script>

<style>

</style>
